package com.itheima.home_work;

import com.itheima.home_work.users.UserManager;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        // 启动工程
        MainApp mainApp = new MainApp();

        mainApp.UsersInit();
        mainApp.QuestionsInit();

        while (true) {
            System.out.println("欢迎来到黑马数学心算练习系统");
            System.out.println("请输入用户名：");
            Scanner sc = new Scanner(System.in);
            String username = sc.next();
            System.out.println("请输入用密码：");
            String password = sc.next();
            if (mainApp.userLogin(username, password)) {
                break;
            }
        }
        mainApp.userTime();
    }
}
